//用户信息相关的接口函数
import request from '@/utils/request'

//更新老师信息
export const updateInstructorApi = data => {

    return request({
        url: `/instructor`,
        method:"put",
        data
    })
}

//获取当前token教师信息
export const getInstructorApi = () => {
    return request({
        url: `/instructor`,
        method:"get"
    })
}

//查找老师信息根据id
export const getInstructorByIdApi = id => {
    return request({
        url: `/instructor/id/${id}`,
        method:"get",
    })
}

//查找老师信息根据no
export const getInstructorByNoApi = no => {
    return request({
        url: `/instructor/${no}`,
        method:"get"
    })
}

//查找老师信息根据telephone
export const getInstructorByTelephoneApi = telephone => {
    return request({
        url: `/instructor/telephone/${telephone}`,
        method:"get",
    })
}


//查找老师信息根据telephone
export const getInstructorByEmailApi = email => {
    return request({
        url: `/instructor/email/${email}`,
        method:"get",
    })
}

